<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<%@ include file="../general_fen.jsp"%>
</head>
<body class="body_in" id="body_id">
	<!-- <div class="content"> -->
	<div class="row"
		style="background-color: rgb(243, 244, 245); margin: 0px 15px;">
		<div
			style="height: 40px; background-color: rgb(243, 244, 245); margin: 5px 0;">
			<h4 style="float: left; padding-left: 10px; overflow: hidden;">积分行为管理</h4>
			<!--功能区按钮-->
			<div
				style="background-color: rgb(243, 244, 245); height: 40px; width: -moz-max-content; float: right; margin-right: 15px; padding: 5px 0px 0px; border-radius: 2px; overflow: hidden;">
				<a data-original-title="添加" class="btn btn-info btn-sm btna" data-toggle="tooltip" title="" onclick="openInsert();"><span class="glyphicon glyphicon-plus" data-toggle="modal" data-target="#myModal_1"></span></a> 
				<a data-original-title="禁用" class="btn btn-danger btn-sm btna" data-toggle="tooltip" title="" onclick="delCB();"><span class="glyphicon glyphicon-minus-sign" data-target="#myModal_4" data-toggle="modal"></span></a> 
				<a data-original-title="修改" class="btn btn-success btn-sm btna" data-toggle="tooltip" title="" onclick="getCB();"><span class="glyphicon glyphicon-pencil" data-toggle="modal" data-target="#myModal_1"></span></a> 
				<a data-original-title="搜索" class="btn btn-ss btn-sm btna" data-toggle="tooltip" title=""><span class="glyphicon se_gly glyphicon-search"></span></a>
			</div>
		</div>
		<div class="col-md-12" style="padding: 0px;">
			<div class="box">
				<table class="table table-striped table-advance table-hover">
					<thead>
						<tr>
							<th><input type="checkbox" id="ck-all" name="ck-all"
								onclick="checkall();">&nbsp;全选</th>
							<th>行为编号</th>
							<th>行为名称</th>
							<th>行为上级</th>
							<th>行为备注</th>
							<th>状态</th>
						</tr>
					</thead>
					<tbody id="list_1">
						<tr>

						</tr>
					</tbody>
				</table>
			</div>
			<!-- /.box -->
		</div>
	</div>
	<div class="pag_in pagination"></div>
	<!-- </div> -->
	<!-- 弹出框 -->
	<div class="tank" id="myModal_1">
		<!-- <div class="modal-dialog modal-dialog_1"> -->
		<div class="modal-content">
			<div class="modal-header" style="padding: 8px;">
				<a type="button" class=" btn btn-danger btn-sm btnb"
					data-dismiss="modal" aria-hidden="true" data-placement="bottom"
					data-toggle="tooltip" title="取消"> <span
					class="glyphicon glyphicon-off"></span>
				</a> <a type="button" href="javascript:insert();"
					class="btn btn-info btn-sm btnb" data-placement="bottom"
					data-toggle="tooltip" title="保存"> <span
					class="glyphicon  glyphicon-floppy-saved"></span>
				</a>
				<h4 class="modal-title" id="myModalLabel">基本信息</h4>
			</div>
			<div class="modal-body" style="padding: 15px 15px 0px;">
				<form id="creditsBform" method="post">
					<table class="table table-bordered">
						<tbody>
							<tr>
								<input type="hidden" id="id" name="id" value="">
								<td class="sty01">行为编号</td>
								<td class="sty01"><input type="text" name="behaviorId"
									class="form-control" value="" readonly="true"></td>
							</tr>
							<tr>
								<td class="sty01">行为名称</td>
								<td class="sty01"><input type="text" name="behaviorName"
									class="form-control" value=""></td>
							</tr>
							<tr>
								<td class="sty01">行为上级</td>
								<td class="sty01">
									<div class="main_demo" style="width: 100%;">
										<select id="parent_id"
											 name="parentId">
										    <option value="CB00001">日签到</option>
											<option value="CB00002">周签到</option>
											<option value="CB00003">交易金额</option>
											<option value="CB00004">牛人跟踪</option>
											<option value="CB00005">交易手数</option>
										</select>
									</div>
								</td>
							</tr>
							<tr>
								<td class="sty01">是否显示</td>
								<td class="sty01">
									<input type="radio" name="isShow" id="planing-status" value="1" checked="checked">开启</input>
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									<input type="radio" name="isShow" id="planing-status" value="0">禁用</input>
								</td>
							</tr>
							<tr>
								<td class="sty01">状态</td>
								<td class="sty01">
									<input type="radio" name="status" id="planing-status" value="1" checked="checked">开启</input>
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									<input type="radio" name="status" id="planing-status" value="0">禁用</input>
								</td>
							</tr>
							<tr>
								<td class="sty01">积分行为备注</td>
								<td class="sty01"><input type="text" name="behaviorRemarks"
									class="form-control" value=""></td>
							</tr>
						</tbody>
					</table>
				</form>
			</div>
		</div>
	</div>
	<!-- 搜索框开始-->
	<div class="se_area">
	<form id="searchForm" method="post">
		<div style="padding: 5px 15px 10px;" class="search_1">
			<div style="margin: 5px;" id="se_cond">
				<!--<div class="se_select">
					<span style="float: left; padding-top: 5px;">行为上级：</span>
					<div class="main_demo"
						style="width: auto; min-width: 85px; float: left;">
						<select class="params select2-offscreen" tag="w-params"
							id="deptid" name="deptid" tabindex="-1">
							<option value="">全部</option>
						</select>
					</div>
				</div>
				<div style="clear: both;"></div>
				<div class="se_select">
					<span style="float: left; padding-top: 5px;">角色：</span>
					<div class="main_demo"
						style="width: auto; min-width: 85px; float: left;">
						<select class="params select2-offscreen" tag="w-params"
							id="roleid" name="roleid" tabindex="-1">
							<option value="">全部</option>
							<option value="1">系统操作员</option>
							<option value="2">数据分析员</option>
							<option value="3">普通公司职员</option>
						</select>
					</div>
				</div>  -->
				<div style="clear: both;"></div>
				<div class="se_date se_select">
					<span style="float: left; padding-top: 5px;">关键字：</span>
					<div class="input-group" style="border-radius: 3px; width: 80%;">
						<input style="border-radius: 3px;" id="keyword" name="keyword"
							class="text-green form-control input-g params" tag="w-params"
							placeholder="关键字..." type="text">
					</div>
				</div>
				<div class="se_select">
					<span style="float: left; padding-top: 5px;">状态：</span>
					<div class="main_demo"
						style="width: auto; min-width: 85px; float: left;">
						<select class="params select2-offscreen" tag="w-params"
							id="s_status" name="s_status" tabindex="-1">
							<option value="">全部</option>
							<option value="1">是</option>
							<option value="0">否</option>
						</select>
					</div>
				</div>
				
				<div style="clear: both;"></div>
				<a type="button" href="javaScript:searchbh(1);" name="seach"
					id="search-btn" class="ascertain_btn">确定</a>
			</div>
		</div>
		</form>
	</div>

	<script type="text/javascript" src="../pointJs/creditsBehavior.js"></script>
</body>
</html>

